package com.chinaisafe.demo;

import com.chinaisafe.gateway.sdk.annotation.EnableAutoAuthorizationGateway;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * DemoServiceApplication
 * Description：DemoService主启动类
 *
 * @author JiangZhaoYong
 * @date 2024/7/10 16:54
 */
@SpringBootApplication
@Slf4j
@EnableDiscoveryClient
@EnableAutoAuthorizationGateway
@EnableScheduling
@ComponentScan("com.chinaisafe")
public class DemoServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoServiceApplication.class, args);
        log.info("=============== DemoServiceApplication 启动成功 ===============");
    }
}
